import { createApp } from "vue";

import "@/styles/tailwind.css";
import "@/styles/style.css";
import Vant from "vant";
import "vant/lib/index.css";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import pinia from "@/store/index";
import { router } from "./router/index";
import "./permission";
import App from "./App.vue";

bootstrap();
async function bootstrap() {
  const app = createApp(App);

  app.use(ElementPlus).use(Vant).use(router).use(pinia);

  await router.isReady();

  app.mount("#app");
}
